package com.gdust.hzx.order.mapper;

import com.gdust.hzx.model.entity.order.OrderItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: OrderItemMapper
 * Package: com.gdust.hzx.order.mapper
 * Description:
 *
 * @Author syun
 * @Create 2024/12/27 21:31
 * @Version 1.0
 */
@Mapper
public interface OrderItemMapper {

    void save(OrderItem orderItem);

    /**
     * 查询当前订单 ID 对应的所有订单项
     * @param id
     * @return
     */
    List<OrderItem> findByOrderId(Long id);
}
